package com.baixun.gascommon.enums;

public enum ResultStatus {



    NoUserFind(0,"用户不存在"),
    PassWordFail(0,"密码错误"),
    TokenNotExist(0,"token不能为空"),
    UserFreeze(0,"账户已冻结"),
    NoAuthority(0,"账户权限为空"),
    NoUpFile(0,"上传文件出错"),
    NoVideoFind(0,"摄像头信息未找到"),
    LoginFail(0,"登录失败"),
    NoAgainLogin(0,"该用户已登录，不能重复登录");



    private final int code;
    private final String message;

    // 构造方法，必须在枚举类中定义
    ResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    //只需要get方法获取值，不需要赋值
    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
